1 # Building with Vagrant
3 > **On Windows building with this method is not advised and should be used only if Windows Linux Subsystem can not be used. In all other cases all Windows users should be using Linux Subsystem (WSL) instead**
5 Setting up build environment with Vagrant is remarkably simple, but you still need to have some basic knowlage of your OS.
8 Vagrant needs some kind of virtualization software to run, i.e. VirtualBox.
9 You can get VirtualBox from here:
11 https://www.virtualbox.org/wiki/Downloads
14 Download and install Vagrant for you OS from here:
16 https://www.vagrantup.com/downloads.html
19 ## Cloning INAV repository
20 Using git (The preferred way!)
22 git clone https://github.com/iNavFlight/inav.git
25 Or download the .zip file from
27 https://github.com/iNavFlight/inav
29 and extract it to folder of your choosing.
31 ## Running the virtual machine
32 Open up a terminal or command line interface (In windows search for CMD.exe and run it as administrator!)
33 Navigate in to the directory of your cloned/unzipped INAV repository. (Where the "Vagrantfile" is located.) and start the virtual machine.
38 Starting the virtual machine might take some time depending on your computer speed.
39 When you start the virtual machine for the first time, it has to download the base virtual machine files and do some installation steps,
40 so it takes longer than the following times you start it.
43 When the start up has finished succesfully and you are back to your command prompt. Login in to the virtual machine.
49 In the virtual machine, go to the INAV directory
54 If you downloadet the repository as a zip file, you may have to type:
59 To stop the file system boundary warnings.
61 Build your desired target
67 ## Updating and rebuilding the firmware
72 make clean TARGET=AIRBOTF4
76 ## Additional virtual machine commands
78 Exit from the virtual machine interface with:
83 Shutdown the virtual machine with:
88 Remove the virtual machine files from your computer with: